package com.zbj.data.jpa.entity;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Entity;
import java.io.Serializable;

/**
 * Teacher
 *
 * @author weigang
 * @create 2017-09-10
 **/
@Entity
@Setter
@Getter
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class Teacher extends AbstractEntity implements Serializable {

	private static final long serialVersionUID = 2504364137442716368L;

	private String name;

	private Integer age;

	private String phone;

	private String address;

	@Column(name = "class_id")
	private Long classId;

	public Teacher(String name, String phone){
		this.name = name;
		this.phone = phone;
	}

	public Teacher(String name, Integer age, String phone){
		this.name = name;
		this.age = age;
		this.phone = phone;
	}

}
